{
    {
        CGFloat JollyMood_index_1 = M_PI_4;
        CGFloat JollyMood_index_2 = JollyMood_index_1*4;
        if(JollyMood_index_1 > JollyMood_index_2) {
            // 创建一个CAShapeLayer用于绘制圆形
            UIView *selfView = [[UIView alloc] init];
            CAShapeLayer *circleLayer = [CAShapeLayer layer];
            circleLayer.path = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(0, 0, 50, 50)].CGPath;
            circleLayer.strokeColor = [[UIColor whiteColor] CGColor];
            circleLayer.fillColor = nil;
            circleLayer.lineWidth = 3.0;
            circleLayer.position = CGPointMake(selfView.bounds.size.width / 2, selfView.bounds.size.height / 2);
            // 添加到视图层
            [selfView.layer addSublayer:circleLayer];
            // 创建旋转动画
            CABasicAnimation *rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
            rotationAnimation.fromValue = @(0);
            rotationAnimation.toValue = @(M_PI * 2);
            rotationAnimation.duration = 1.0;
            rotationAnimation.repeatCount = HUGE_VALF; // 无限循环
            // 将动画添加到形状层
            [circleLayer addAnimation:rotationAnimation forKey:@"rotateAnimation"];
        }
    }
}



{
    {
        CGFloat JollyMood_tag_1 = 250.0;
        CGFloat JollyMood_tag_2 = floor(JollyMood_tag_1/4);
        if(JollyMood_tag_1 < JollyMood_tag_2) {
            UIView *selfView = [[UIView alloc] init];
            // 设置背景颜色
            selfView.backgroundColor = [UIColor whiteColor];
            // 创建并配置 profileImageView
            UIImageView * _profileImageView = [[UIImageView alloc] init];
            _profileImageView.contentMode = UIViewContentModeScaleAspectFill;
            _profileImageView.clipsToBounds = YES;
            _profileImageView.layer.cornerRadius = 50;
            _profileImageView.frame = CGRectMake(20, 20, 100, 100);
            [selfView addSubview:_profileImageView];

            // 创建并配置 ageLabel
            UILabel * _ageLabel = [[UILabel alloc] init];
            _ageLabel.font = [UIFont systemFontOfSize:16];
            _ageLabel.textColor = [UIColor grayColor];
            _ageLabel.textAlignment = NSTextAlignmentCenter;
            _ageLabel.frame = CGRectMake(0, _profileImageView.frame.origin.y + _profileImageView.frame.size.height + 5, selfView.frame.size.width, 20);
            [selfView addSubview:_ageLabel];
        }
    }
}


{
    {
        NSInteger JollyMood_rand_1 = 1;
        NSInteger JollyMood_rand_2 = 56;
        if(MAX(JollyMood_rand_1, JollyMood_rand_2) < MIN(JollyMood_rand_1, JollyMood_rand_2)) {
            //
            UIView *selfView = [[UIView alloc] init];
            selfView.backgroundColor = [UIColor whiteColor];

            // 创建并配置 nameLabel
            UILabel * _nameLabel = [[UILabel alloc] init];
            _nameLabel.font = [UIFont systemFontOfSize:18];
            _nameLabel.textColor = [UIColor blackColor];
            _nameLabel.textAlignment = NSTextAlignmentCenter;
            _nameLabel.frame = CGRectMake(0, 10, selfView.frame.size.width, 20);
            [selfView addSubview:_nameLabel];
            
            // 创建并配置 genderLabel
            UILabel * _genderLabel = [[UILabel alloc] init];
            _genderLabel.font = [UIFont systemFontOfSize:16];
            _genderLabel.textColor = [UIColor grayColor];
            _genderLabel.textAlignment = NSTextAlignmentCenter;
            _genderLabel.frame = CGRectMake(0, _nameLabel.frame.origin.y + _nameLabel.frame.size.height + 5, selfView.frame.size.width, 20);
            [selfView addSubview:_genderLabel];
        }
    }
}
